<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./../../public/templateMenu.xhtml">

            <ui:define name="conteudo">
                <h:form>
                    <p:panel header="Anjos" >


                        <h:panelGrid columns="2">

                            <h:outputText  value="Nome: "/>
                            <h:inputText id="nomeA" value="#{anjoBean.anjo.nome}" label="Anjo" size="46"/>

                            <h:outputText  value="Apelido: "/>
                            <h:inputText id="apelido" value="#{anjoBean.anjo.apelido}" label="Apelido" size="46"/>

                            <h:outputText value="E-mail: "/>
                            <h:inputText id="emailA" value="#{anjoBean.anjo.email}" label="Email" size="46"/>

                            <h:outputText value="RG: "/>
                            <h:inputText id="rg" value="#{anjoBean.anjo.rg}" label="RG" size="30"/>

                            <h:outputText   value="Telefone: "/>
                            <h:inputText id="telefone" value="#{anjoBean.anjo.telefone}" label="Telefone" size="40"/>
                        </h:panelGrid>
                        <div align="south">
                            <h:panelGrid columns="4">
                                <p:commandButton value="Salvar" ajax="false" actionListener="#{anjoBean.salvar()}"/>
                                <p:commandButton value="Limpar" ajax="false" type="reset"/>
                                <p:commandButton value="Cancelar" ajax="false" action="/cadastro/anjo/listaAnjos.xhtml"/>
                            </h:panelGrid>
                        </div>
                    </p:panel>
                </h:form>
            </ui:define>

        </ui:composition>

    </body>
</html>
